package com.pig.graduate.domain.material;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pig.graduate.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 物料库存
 * @TableName material_inventory
 */
@TableName(value ="material_inventory")
@Data
public class MaterialInventory extends BaseEntity implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 库存数
     */
    private Integer inventoryNumber;

    /**
     * 物料id
     */
    private Long materialId;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

    @TableField(exist = false)
    private String supplierName;

    //物料名称
    @TableField(exist = false)
    private String materialName;

    //物料类型
    @TableField(exist = false)
    private String materialType;

    //计量单位
    @TableField(exist = false)
    private String unitOfMeasure;

    //规格
    @TableField(exist = false)
    private String specification;

    //保质期
    @TableField(exist = false)
    private String ShelfLife;

    //提醒时间
    @TableField(exist = false)
    private String expiryReminders;

    //默认单价
    @TableField(exist = false)
    private BigDecimal unitPrice;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}